﻿<%@ WebHandler Language="C#" Class="weekplancancel" %>

using System;
using System.Web;
using TSqlServer;

public class weekplancancel : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        string inman = context.Request["myuid"].ToString();
        string planuid = context.Request["puid"].ToString();
        string plandate = context.Request["plandate"].ToString();
        string plantime = context.Request["plantime"].ToString();
        string plantimenum = context.Request["plantimenum"].ToString();

        //TWeekPlan.DeleteByID(planuid);
        TWeekPlan oPlan = new TWeekPlan(planuid);
        oPlan.Status = 1;
        oPlan.Update_status();

        context.Response.ContentType = "text/plain";
        context.Response.Write(TDateTime.GetPlans(inman, Convert.ToDateTime(plandate), plantime, Convert.ToInt32(plantimenum)));
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}